import {
  request
} from '../http'
import qs from 'qs'

const api = {
  login: '/user/login',
  register: '/user/register',
}


// 登录界面
export const login = (data) => request({
  url: api.login,
  method: 'post',
  data: qs.stringify(data)
}, {
  loading: false
})
// 注册界面
export const register = (data) => request({
  url: api.register,
  method: 'post',
  data
}, {
  loading: false
})
